package xyz.yudan.app.relation;

/**
 * Created by gamy on 2018/4/6.
 */
final public class UserTaskRelation {

    final public static int NONE = 0; //无权限
    final public static int READ = 0x1 << 0; //读取权限
    final public static int MODIFY = 0x1 << 1; //修改所有内容的权限
    final public static int DELETE = 0x1 << 2; //删除权限
    final public static int UPDATE_STATE = 0x1 << 3; //修改状态权限

    /* 一般队员有READ|UPDATE_STATE权限,管理员有 READ|MODIFY|DELETE|UPDATE_STATE 权限 */
    final public static int MANAGER_RELATION = READ | MODIFY | DELETE | UPDATE_STATE;
    final public static int MEMBER_RELATION = READ | UPDATE_STATE;
}
